/*
document.addEventListener('DOMContentLoaded', function () {
    // 背景块
    const backgroundBlock = document.querySelector(".background");

    // 登录盒子
    const loginBox = document.querySelector(".login-box");

    // 注册盒子
    const registerBox = document.querySelector(".register-box");

    // 注册切换按钮
    const changeRegister = document.querySelector(".change-register");

    // 注册切换按钮事件
    changeRegister.addEventListener('click', function (e) {
        e.preventDefault();

        backgroundBlock.classList.add("change-register-background");
        loginBox.classList.add("change-login-box");
        registerBox.classList.add("change-register-box");
    });

    // 登录切换按钮
    const changeLogin = document.querySelector(".change-login");

    // 登录切换按钮事件
    changeLogin.addEventListener('click', function (e) {
        e.preventDefault();

        backgroundBlock.classList.remove("change-register-background");
        loginBox.classList.remove("change-login-box");
        registerBox.classList.remove("change-register-box");
    });
});
*/
